package fun.werfamily.wf.goods.core.domain.dto.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: Mr.WenMing Zhang
 * @Date: 2022-08-19 23:05
 * @Description:
 */
@Data
@ApiModel("spu实体")
public class GoodsSpuDTO implements Serializable {

    @ApiModelProperty("spu编码")
    private String spuCode;

    @ApiModelProperty("商品类目")
    private String categoryCode;

    @ApiModelProperty("spu名称")
    private String spuName;

    @ApiModelProperty("副标题")
    private String subtitle;

    @ApiModelProperty("缩略图")
    private String shortImage;

    @ApiModelProperty("商品图片视频列表")
    private List<ProductMediaDTO> productMediaDTOList;

    @ApiModelProperty("最低售价")
    private BigDecimal lowestPrice;

    @ApiModelProperty("最高售价")
    private BigDecimal highestPrice;

    @ApiModelProperty("市场价、划线价")
    private BigDecimal marketPrice;

    @ApiModelProperty("销量")
    private Integer sales;

    @ApiModelProperty("是否包邮")
    private Boolean isFreeShipping;

    @ApiModelProperty("库存数量")
    private Integer stock;

    @ApiModelProperty("计量单位")
    private String unit;

    @ApiModelProperty("0-待上架，1-已上架，2-已售罄，3-已下架")
    private Byte status;

    @ApiModelProperty("富文本描述")
    private String detailDesc;

    @ApiModelProperty("规格详情")
    private List<GoodsSpecDTO> specDTOList;

    @ApiModelProperty("子商品列表")
    private List<GoodsSkuDTO> skuList;
}
